/*
   HitTest.h
   Brawlers
 
   Created by Leroy Ketelaars on 9/28/09.
   Copyright 2009 Zombies on Fire. All rights reserved.
 	parts, or some of these functions are renamed from SDL_collides' functions
 
 */

#ifndef __HITTEST_H__
#define __HITTEST_H__
#include "BSRect.h"
#include "SDL.h"
#include "QMPoint.h"

bool HitTest(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
bool HitTest(int x1, int y1, int x2, int y2, int w2, int h2);
bool HitTest(int x1, int y1, int w1, int h1, SDL_Rect r);
bool HitTest(int x1, int y1, int w1, int h1, BSRect r);
bool HitTest(int x1, int y1, SDL_Rect r);
bool HitTest(int x1, int y1, BSRect r);
bool HitTest(int x1, int y1, int w1, int h1, QMPoint p, int w2, int h2);
bool HitTest(int x1, int y1, QMPoint p, int w2, int h2);
bool HitTest(QMPoint p, int w1, int h1, int x2, int y2, int w2, int h2);
bool HitTest(QMPoint p, int x2, int y2, int w2, int h2);
bool HitTest(QMPoint p, int w1, int h1, QMPoint p, int w2, int h2);
bool HitTest(QMPoint p1, QMPoint p2, int w2, int h2);
bool HitTest(QMPoint p, int w1, int h1, SDL_Rect r);
bool HitTest(QMPoint p, int w1, int h1, BSRect r);
bool HitTest(SDL_Rect r1, SDL_Rect r2);
bool HitTest(SDL_Rect r1, BSRect r2);
bool HitTest(BSRect r1, BSRect r2);
bool HitTest(BSRect r1, SDL_Rect r2);
bool HitTest(QMPoint p, SDL_Rect r2);
bool HitTest(QMPoint p, BSRect r2);

SDL_Rect ToSDLRect(BSRect* r);
BSRect ToBSRect(SDL_Rect* r);


#endif

